package com.yf.mediaserver.zlm.bean.hook;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * channels : 1
 * codec_id : 3
 * codec_id_name : PCMA
 * codec_type : 1
 * duration : 4241
 * frames : 108
 * loss : 0.0
 * ready : true
 * sample_bit : 16
 * sample_rate : 8000
 * fps : 15.0
 * gop_Integererval_ms : 3996
 * gop_size : 60
 * height : 1080
 * key_frames : 3
 * width : 1920
 */
@Data
@Accessors(chain = true)
public class TracksBean implements Serializable {
    /**
     * 音频通道数
     */
    private Integer channels;
    /**
     *  H264 = 0, H265 = 1, AAC = 2, G711A = 3, G711U = 4
     */
    private Integer codec_id;

    /**
     * 编码类型名称 CodecAAC CodecH264
     */
    private String codec_id_name;

    /**
     * Video = 0, Audio = 1
     */
    private Integer codec_type;

    private Integer duration;
    /**
     * 帧数
     */
    private Integer frames;
    /**
     * 丢帧率
     */
    private Double loss;
    /**
     * 轨道是否准备就绪
     */
    private Boolean ready;
    /**
     * 音频采样位数
     */
    private Integer sample_bit;
    /**
     * 音频采样率
     */
    private Integer sample_rate;
    /**
     * 视频fps
     */
    private Double fps;
    /**
     * GOP间隔时长(ms)
     */
    private Integer gop_interval_ms;
    /**
     * GOP大小
     */
    private Integer gop_size;
    /**
     * 视频高
     */
    private Integer height;
    /**
     * 关键帧数
     */
    private Integer key_frames;

    /**
     * 视频宽
     */
    private Integer width;
}
